package com.wzx.selfuse.service.impl;

import com.wzx.selfuse.entity.User;
import com.wzx.selfuse.mapper.UserMapper;
import com.wzx.selfuse.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

   @Autowired
   UserMapper userMapper;

    @Override
    public List<User> getUsers() {
        return userMapper.getUsers();
    }

    @Override
    public List<User> getUserByUserName(String username) {
        return userMapper.getUserByUserName(username);
    }

    @Override
    public List<User> selectUser() {
        return userMapper.selectUser();
    }
}
